@layout("/common/_container.html",{js:["/assets/common/module/ueditor/ueditor.config.js","/assets/common/module/ueditor/ueditor.all.js","/assets/modular/recy/wasteInfo/wasteInfo_add.js","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加回收物</span>
</div>

<div class="layui-container" style="">
    <form id="wasteInfoForm" lay-filter="wasteInfoForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
        <input name="id" type="hidden"/>
        <div class='layui-form-item'>
            <div class="layui-inline">
                <label class="layui-form-label">回收物名称</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="name" name="name" placeholder="回收物名称" type="text" class="layui-input" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">类别</label>
                <div class="layui-input-block">
                    <select style="width:150px" id="wasteTypeId" name="wasteTypeId" placeholder="类别" type="text" class="layui-input" >
                        @for(wasteType in wasteTypeList){
                        <option value="${wasteType.id}">${wasteType.typeName}</option>
                        @}
                    </select>

                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">图标</label>
                <div class="layui-input-block">
                    <input id="icon" name="icon" placeholder="图标" type="hidden" class="layui-input   " />
                    <button type="button" class="layui-btn" id="iconUpload">
                        <i class="layui-icon">&#xe67c;</i>上传图片
                    </button>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">回收价</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="price" name="price" placeholder="回收价" type="text" class="layui-input" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">单位</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="unitName" name="unitName" placeholder="单位" type="text" class="layui-input" />
                </div>
            </div>
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
        </div>
    </form>
</div>

@}